package com.nidu.demo.notice.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.notice.dto.NoticeListQry;
import com.nidu.demo.notice.dto.NoticePageQry;
import com.nidu.demo.notice.dto.NoticeQry;
import com.nidu.demo.notice.model.NoticeCriteria;
import org.mapstruct.Mapper;

@Mapper(config = MapStructConfig.class)
public interface NoticeCriteriaConvertor {

    NoticeCriteria toDataObject(NoticePageQry pageQry);

    NoticeCriteria toDataObject(NoticeListQry listQry);

    NoticeCriteria toDataObject(NoticeQry qry);

}
